/*
 * @Descripttion: 
 * @version: 
 * @Author: mmzhang
 * @Date: 2021-07-27 16:02:34
 * @LastEditTime: 2022-01-26 14:25:30
 */
import table from '@/components/dt/table/render.js'
import nameOpt from '@/biz/option/name.js'
import dateOpt from '@/biz/option/date.js'
import Opt from '@/components/dt/info/Opt.js'
import dt from '@dt/dt'

let _this = null

class Column extends Opt {
  constructor(vm) {
    super()
    _this = vm
    this.build()
  }

  build() {
    this.createAll()
    this.opts.push(...this.all)
  }

  createAll() {
    this.all = [
    {
      type: 'checkbox',
      width: 60,
      align: 'center',
    },
    {
      title: '案场名称',
      field: 'housesName',
      minWidth: 180,
    },
    {
      title: '业务事业部',
      field: 'caseLocation',
      minWidth: 180,
    },
    {
      title: '业务子公司',
      field: 'caseLocationTwo',
      minWidth: 180,
    },
    {
      title: '业务事业处',
      field: 'department',
      minWidth: 150,
    },
    {
      title: 'OA事业部',
      field: 'caseLocationOa',
      minWidth: 130,
    },
    {
      title: 'OA子公司',
      field: 'caseLocationTwoOa',
      minWidth: 180,
    },
    {
      title: 'OA事业处',
      field: 'departmentOa',
      minWidth: 150,
    },
    {
      title: '所属城市',
      field: 'cityName',
      minWidth: 130,
    },
    {
      title: '案场状态',
      field: 'housesStatus',
      minWidth: 180,
      slots: {
        default: (params, h) => {
          return [h('div', dt.dictInfo().__value('buildStatus', params.row
            .housesStatus))]
        }
      },

    },
    {
      title: '主委',
      field: 'chairMan',
      minWidth: 170,
    }]
  }

}

export default Column